package com.huweilong.tingshu.view_object;

import lombok.Data;

/**
 * @author 是阿秋啊
 * @date 2022/07/22 11:59
 **/
@Data
public class AlbumVO {
    public Integer aid;
    public String title;
    public String cover;
    public String state;

    public AlbumVO(Integer aid, String title, String cover, Integer state) {
        this.aid = aid;
        this.title = title;
        this.cover = cover;
        switch (state){
            case 0: this.state = "已下线"; break;
            case 1: this.state = "未发布"; break;
            case 2: this.state = "已发布"; break;
        }
    }
}